﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Tanks
{
    public class Rocket:Missile
    {
        public Rocket(Direction Facing, Cell C)
            : base(Facing, C)
        {
            range = 3;
            strength = 20;
        }
        protected override void drawShape(Bitmap canvas)
        {
            using (Graphics gr = Graphics.FromImage(canvas))
            {
                gr.FillEllipse(new SolidBrush(Color.Orange), new Rectangle(c.X * game.CellSize + game.CellSize / 4, c.Y * game.CellSize + game.CellSize / 4, game.CellSize / 3, game.CellSize / 3));
                gr.FillEllipse(new SolidBrush(Color.Yellow), new Rectangle(c.X * game.CellSize + game.CellSize / 3, c.Y * game.CellSize + game.CellSize / 3, game.CellSize / 5, game.CellSize / 5));
                gr.FillEllipse(new SolidBrush(Color.White), new Rectangle(c.X * game.CellSize + game.CellSize / 3, c.Y * game.CellSize + game.CellSize / 3, game.CellSize / 8, game.CellSize / 8));
            }
        }
    }
}
